<?php 
if(file_exists(get_problem_path($pid))){
	echo '<table style="width:100%" class="noprint"><tr>';
	if(file_exists(get_problem_path($pid-1)))
		echo '<td><a href="index.php?section=problems&amp;id=' . ($pid-1) . '" title="Go to problem ' . ($pid-1) . '"><img src="images/icon_back.png" alt="Back" /></a></td>';
	if(file_exists(get_problem_path($pid+1)))
		echo '<td><div style="text-align:right;"><a href="index.php?section=problems&amp;id=' . ($pid+1) . '" title="Go to problem ' . ($pid+1) . '"><img src="images/icon_next.png" alt="Next" /></a></div></td>';
	echo '</tr></table>';
	include(get_problem_path($pid));
}
else {$pid = "NA";  include(get_problem_path($pid));}
?>
